import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询水票码信息列表
export function listWaterbillcode(query) {
  return request({
    url: '/business/waterbillcode/list',
    method: 'get',
    params: query
  })
}

// 查询水票码信息详细
export function getWaterbillcode(id) {
  return request({
    url: '/business/waterbillcode/' + parseStrEmpty(id),
    method: 'get'
  })
}

// 新增水票码信息
export function addWaterbillcode(data) {
  return request({
    url: '/business/waterbillcode',
    method: 'post',
    data: data
  })
}

// 修改水票码信息
export function updateWaterbillcode(data) {
  return request({
    url: '/business/waterbillcode',
    method: 'put',
    data: data
  })
}

// 删除水票码信息
export function delWaterbillcode(id) {
  return request({
    url: '/business/waterbillcode/' + id,
    method: 'delete'
  })
}
